package com.caisejingyu.whales.home.common

/**
 * @author: xuxiaojie
 */

object Defines {


    /**
     * sp name
     */
    const val WHALES_SP = "WHALES_SP"


    /**
     * 机器与后台交互唯一码
     */
    const val MACHINE_CODE = "MACHINE_CODE"

    /**
     * 手机打印二维码
     */
    const val PHONE_QR_CODE = "PHONE_QR_CODE"

    /**
     * 公众号二维码
     */
    const val PUBLIC_QR_CODE = "PUBLIC_QR_CODE"

    /**
     * 客户电话
     */
    const val SERVICE_PHONE = "SERVICE_PHONE"

    /**
     * 偏移量
     */
    const val OFFSET = "OFFSET"

    /**
     * 页面intent交互使用
     */
    const val INTENT_REPHOTO = -1     // 重拍
    const val INTENT_PRINT = 1        // 打印

    /**
     * 打印机状态
     */
    const val PRINTER_STATE_LACK_PAPER = 1          // 缺纸
    const val PRINTER_STATE_PRINTING = 2            // 打印中
    const val PRINTER_STATE_PRINT_ABLE = 3          // 可打印
    const val PRINTER_STATE_PRINT_OFFLINE = 4       // 离线
    const val PRINTER_STATE_PRINT_FINISH = 5        // 打印完成


    /** home view 初始状态 */
    const val HOME_VIEW_STATUS_INIT = 0

    /** home view 拍照状态 */
    const val HOME_VIEW_STATUS_TAKING_PICTURE = 1

    /** home view 打印中状态 */
    const val HOME_VIEW_STATUS_PRINTING = 2

    /** 打印上报状态-成功 */
    const val PRINT_REPORT_STATUS_SUCCEES = "1"

    /** 打印上报状态-失败 */
    const val PRINT_REPORT_STATUS_ERROR = "2"

    /** 图片宽度 */
    const val PICTURE_WIDTH = 1080

    /** 图片高度 */
    const val PICTURE_HEIGHT = 1300

    /** 默认选择的相框位置 */
    const val DEFALULT_PICTURE_POSITION = 1


    /** 打印状态-开始 */
    const val PRINT_STATUS_START = 0

    /** 打印状态-结束 */
    const val PRINT_STATUS_END = 1

    const val TAG = "guangxing"


}